package com.project.bean;

import java.time.LocalDate;
import java.util.List;

/**
 * @author liuyulai
 * Created with IntelliJ IDEA.
 * Date: 21.7.10
 * Time: 16:19
 * Description: 学校实体bean
 */
public class SchoolBean {
    /**
     * 学校id
     */
    private int schoolId;

    /**
     * 学校名称
     */
    private String schoolName;

    /**
     * 学校电话
     */
    private String tel;

    /**
     * 校长名称
     */
    private String principal;

    /**
     * 目前学校与我方状态
     */
    private String statue = "接洽中";

    /**
     * 学校录入时间
     */
    private LocalDate joinTime = LocalDate.now();

    /**
     * 对学校评价
     */
    private String comment;

    /**
     * 该学校所在城市
     */
    private CityBean cityBean;

    /**
     * 该学校的相关活动集合
     */
    private List<ActivityBean> activityBeanList;


    public SchoolBean() {
    }

    public SchoolBean(String schoolName, String tel, String principal, int cityBean) {
        this.schoolName = schoolName;
        this.tel = tel;
        this.principal = principal;
        this.cityBean = new CityBean();
        this.cityBean.setCityId(cityBean);
    }

    public int getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(int schoolId) {
        this.schoolId = schoolId;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getPrincipal() {
        return principal;
    }

    public void setPrincipal(String principal) {
        this.principal = principal;
    }

    public String getStatue() {
        return statue;
    }

    public void setStatue(String statue) {
        this.statue = statue;
    }

    public LocalDate getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(LocalDate joinTime) {
        this.joinTime = joinTime;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public CityBean getCityBean() {
        return cityBean;
    }

    public void setCityBean(CityBean cityBean) {
        this.cityBean = cityBean;
    }

    public List<ActivityBean> getActivityBeanList() {
        return activityBeanList;
    }

    public void setActivityBeanList(List<ActivityBean> activityBeanList) {
        this.activityBeanList = activityBeanList;
    }

    @Override
    public String toString() {
        return "SchoolBean{" +
                "schoolId=" + schoolId +
                ", schoolName='" + schoolName + '\'' +
                ", tel='" + tel + '\'' +
                ", principal='" + principal + '\'' +
                ", statue='" + statue + '\'' +
                ", joinTime=" + joinTime +
                ", comment='" + comment + '\'' +
                ", cityBean=" + cityBean +
                ", activityBean=" + activityBeanList +
                "}\n";
    }
}
